class Expense < ActiveRecord::Base

  belongs_to :user

  has_many :categories_expenses, :dependent => :destroy
  has_many :categories, :through => :categories_expenses

  validates_presence_of :description, :amount
  validates_numericality_of :amount

end
